#include<iostream>
using namespace std;

int main() {
	string s("asdqxxxx");
	//s.append("a");
	s += "a";
	s.assign("hello");
	s.insert(0, "xxx");
	s.erase(3,2);
	cout << s;
	


	//string::iterator s1 = s.begin();
	/*while (s1!=s.end())
	{
		cout << *s1;
		s1++;
	}*/
	//s.reserve(10);
	/*s.resize(5);
	cout << s.length()<<endl;
	cout << s.size()<<endl;
	cout << s.capacity()<<endl;*/


}